describe it.
what is MVC Architecture?
761
08-Jan-2020
Updated on 08-Jan-2020
Nishi Tiwari
08-Jan-2020Asp.Net MVC architecture separates an application or web page into three main components Model-View-Controller (MVC). MVC architecture provide with “separation of application” in general we can say “Loose coupling”.
1. Model
2. View
3. Controller
The Model
- The Model component of MVC represent business logic and data.
- Model is used for retrieving data and storing data from a database.
The View
- The View component is responsible for displaying data and transforming Model or Models to visual representation.
- Most often the view is created from the model data.
The Controller
- Controller is said to be heart of the entire MVC architecture.
- The Controller as name controls the application logic and interacts between model and view.
- The Controller takes inputs from view and work with model and returns view.